#编写：酷安@董小豪
#测试名单

ceshi(){
DXH_ceshi=false
[ -n "$3" ] && curl -sL $3 -o $1.log && sleep 1
[ -f $1.log ] && cat $1.log | base64 -d > $1
[ -f $1 ] && sed -i 's|：.*||g' $1
[ -f /data/data/com.tencent.mobileqq/shared_prefs/mobileQQ.xml ] && sed '/ptlogin_flag/!d' /data/data/com.tencent.mobileqq/shared_prefs/mobileQQ.xml >> $2
[ -f /data/data/com.tencent.tim/shared_prefs/mobileQQ.xml ] && sed '/ptlogin_flag/!d' /data/data/com.tencent.tim/shared_prefs/mobileQQ.xml >> $2
[ -f /data/data/com.coolapk.market/shared_prefs/coolapk_preferences_v7.xml ] && sed '/string name="uid"/!d' /data/data/com.coolapk.market/shared_prefs/coolapk_preferences_v7.xml >> $2
[ -f $2 ] && sed -i 's|<string name="uid">||g' $2
[ -f $2 ] && sed -i 's|</string>||g' $2
[ -f $2 ] && sed -i 's|<boolean name=||g' $2
[ -f $2 ] && sed -i 's|"ptlogin_flag||g' $2
[ -f $2 ] && sed -i 's|" value="true" />||g' $2
[ -f $2 ] && sed -i 's|" value="false" />||g' $2
[ -f $2 ] && sed -i 's|\r||g' $2
[ -f $2 ] && sed -i 's| ||g' $2
if [ -f $1 ] && [ -f $2 ]; then
	for q in `cat $1`; do
		if [ -z "$Guo" ]; then
			for qq in `cat $2`; do
				if [ $q -eq $qq ]; then
				echo "- 检测到您是在测试名单"
					Guo=$? && DXH_ceshi=true && sleep 1 && break
				else
					[ $? -eq 0 ]
				fi
			done
		fi
	$DXH_ceshi && break
	done
fi
[ -f $1 ] && rm -f $1 $1.log
[ -f $2 ] && rm -f $2
}
